package com.chengqj;

import com.chengqj.blog.service.IBlogService;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @program: blog-dubbo-server
 * @description: 启动类
 * @author: chengqj
 * @create: 2019-01-21 15:34
 **/
public class Bootstrap {
    public static void main(String[] args) throws InterruptedException {
        ClassPathXmlApplicationContext context = new
                ClassPathXmlApplicationContext
                ("dubbo-client.xml");
        IBlogService test = (IBlogService) context.getBean("blogServiceClient");
        System.out.println(test.selectRecommendAll());
    }
}
